package com.coder4j.platform.service;

import com.coder4j.platform.entity.SysUnicodeEntity;
import com.coder4j.platform.mapper.SysUnicodeMapper;
import com.coder4j.platform.vo.SysUnicodeQuery;
import com.coder4j.platform.vo.SysUnicodeVO;
import com.coder4j.starter.web.BaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.beans.BeanUtils;

import lombok.extern.slf4j.Slf4j;

import javax.annotation.Resource;

/**
 * Unicode
 * @author keller
 * @date 2025-06-26 23:34:31
 */
@Service
@Slf4j
public class SysUnicodeService extends BaseServiceImpl<SysUnicodeMapper,SysUnicodeEntity,SysUnicodeVO> {

    @Resource
    private SysUnicodeMapper mapper;

    @Override
    public SysUnicodeVO entity2Vo(SysUnicodeEntity entity) {
        SysUnicodeVO vo = new SysUnicodeVO();
        BeanUtils.copyProperties(entity,vo);
        return vo;
    }

    @Override
    public SysUnicodeEntity vo2Entity(SysUnicodeVO vo) {
        SysUnicodeEntity entity = new SysUnicodeEntity();
        BeanUtils.copyProperties(vo, entity);
        return entity;
    }
}
